package com.shopping_center.management.common;

/**
 * @author YeFeng
 * @date 2023/2/2
 */
public enum  ResultCode {
    /**
     * 系统异常
     */
    SYSTEM_EXCEPTION(4000,"系统异常"),
    SAVE_CAR_INFO_SUCCESS(5000,"新增车辆信息成功"),
    SELECT_ALL_CAR_INFO(5001,"查询所有车辆信息"),
    CAR_NOT_EXIST(5002,"暂无车辆信息"),
    MODIFY_CAR_INFO_SUCCESS(5003,"修改车辆信息成功"),
    DELETE_CAR_INFO_SUCCESS(5004,"删除车辆信息成功"),
    SELECT_FILTER_INFO(5005,"查询过滤筛选条件"),
    SELECT_USER_MENU(6000,"查询用户菜单"),
    LOGIN_SUCCESS(6001,"登录成功"),
    LOGIN_FAILED(6002,"用户名或密码不正确"),
    USER_NOT_EXIST(6003,"用户不存在"),
    SAVE_PHONE_INFO_SUCCESS(7001,"新增手机信息成功"),
    DELETE_PHONE_INFO_SUCCESS(7002,"删除手机信息成功"),
    MODIFY_PHONE_INFO_SUCCESS(7003,"修改手机信息成功"),
    SELECT_ALL_PHONE_INFO(7004,"查询所有手机信息");



    private final Integer code;

    private final String message;

    ResultCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
